package edu.sctu.practice.class02.yangyuran.test22;

import edu.sctu.practice.class01.huangtianlin.text1.B;

/**
 * Created by Administrator on 2015/10/16.
 */
public class interfaceDemo {

    public static void main(String[] args) {

        Bike bike = new Bike();
        String i = bike.start("自行车开动");
        String o = bike.stop("自行车停止");
        System.out.println(i);
        System.out.println(o);

        Bus bus = new Bus();
        String q = bike.start("公交车开动");
        String w = bike.stop("公交车停止");
        System.out.println(q);
        System.out.println(w);
    }
}
